<?php
    function Connect($db, $host="localhost", $username="root", $password=""){
        $con = mysqli_connect($host, $username, $password, $db);
        mysqli_set_charset($con, "utf8");
        return $con;
    }
?>